package com.xx.service.impl;

import com.xx.dao.UpdateProductMapper;
import com.xx.domain.Product;
import com.xx.service.EditProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author : 徐闯 ssm_admin
 * @Date : 2021-05-13 16:05:52
 * @Description : edit product info
 **/
@Service
public class EditProductServiceImpl implements EditProductService {
    @Autowired
    private UpdateProductMapper updateProductMapper;
    @Override
    @Transactional
    public int editProduct(Product product) {
        return updateProductMapper.updateProduct(product);
    }
}
